# coding=utf-8
import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xls_demo.settings")

    import init
    # os.environ['XLS_DEMO_LEVEL'] = 'console'
    http_host = os.environ.get('XLS_DEMO_HTTP_HOST', '0.0.0.0')
    http_port = os.environ.get('XLS_DEMO_HTTP_PORT', '8000')
    # http_thread = os.environ.get('XLS_DEMO_HTTP_THREAD', 30)
    
    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)